<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="identitytoolkit_v1.html">Identity Toolkit API</a> . <a href="identitytoolkit_v1.projects.html">projects</a> . <a href="identitytoolkit_v1.projects.accounts.html">accounts</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#batchCreate">batchCreate(targetProjectId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Uploads multiple accounts into the Google Cloud project. If there is a problem uploading one or more of the accounts, the rest will be uploaded, and a list of the errors will be returned. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).</p>
<p class="toc_element">
  <code><a href="#batchDelete">batchDelete(targetProjectId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Batch deletes multiple accounts. For accounts that fail to be deleted, error info is contained in the response. The method ignores accounts that do not exist or are duplicated in the request. This method requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control).</p>
<p class="toc_element">
  <code><a href="#batchGet">batchGet(targetProjectId, delegatedProjectNumber=None, maxResults=None, nextPageToken=None, tenantId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Download account information for all accounts on the project in a paginated manner. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).. Furthermore, additional permissions are needed to get password hash, password salt, and password version from accounts; otherwise these fields are redacted.</p>
<p class="toc_element">
  <code><a href="#batchGet_next">batchGet_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#delete">delete(targetProjectId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a user's account.</p>
<p class="toc_element">
  <code><a href="#lookup">lookup(targetProjectId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets account information for all matched accounts. For an end user request, retrieves the account of the end user. For an admin request with Google OAuth 2.0 credential, retrieves one or multiple account(s) with matching criteria.</p>
<p class="toc_element">
  <code><a href="#query">query(targetProjectId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Looks up user accounts within a project or a tenant based on conditions in the request.</p>
<p class="toc_element">
  <code><a href="#sendOobCode">sendOobCode(targetProjectId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Sends an out-of-band confirmation code for an account. Requests from a authenticated request can optionally return a link including the OOB code instead of sending it.</p>
<p class="toc_element">
  <code><a href="#update">update(targetProjectId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates account-related information for the specified user by setting specific fields or applying action codes. Requests from administrators and end users are supported.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="batchCreate">batchCreate(targetProjectId, body=None, x__xgafv=None)</code>
  <pre>Uploads multiple accounts into the Google Cloud project. If there is a problem uploading one or more of the accounts, the rest will be uploaded, and a list of the errors will be returned. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).

Args:
  targetProjectId: string, The Project ID of the Identity Platform project which the account belongs to. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for UploadAccount.
  &quot;allowOverwrite&quot;: True or False, # Whether to overwrite an existing account in Identity Platform with a matching `local_id` in the request. If true, the existing account will be overwritten. If false, an error will be returned.
  &quot;argon2Parameters&quot;: { # The parameters for Argon2 hashing algorithm. # The parameters for Argon2 hashing algorithm.
    &quot;associatedData&quot;: &quot;A String&quot;, # The additional associated data, if provided, is appended to the hash value to provide an additional layer of security. A base64-encoded string if specified via JSON.
    &quot;hashLengthBytes&quot;: 42, # Required. The desired hash length in bytes. Minimum is 4 and maximum is 1024.
    &quot;hashType&quot;: &quot;A String&quot;, # Required. Must not be HASH_TYPE_UNSPECIFIED.
    &quot;iterations&quot;: 42, # Required. The number of iterations to perform. Minimum is 1, maximum is 16.
    &quot;memoryCostKib&quot;: 42, # Required. The memory cost in kibibytes. Maximum is 32768.
    &quot;parallelism&quot;: 42, # Required. The degree of parallelism, also called threads or lanes. Minimum is 1, maximum is 16.
    &quot;version&quot;: &quot;A String&quot;, # The version of the Argon2 algorithm. This defaults to VERSION_13 if not specified.
  },
  &quot;blockSize&quot;: 42, # The block size parameter used by the STANDARD_SCRYPT hashing function. This parameter, along with parallelization and cpu_mem_cost help tune the resources needed to hash a password, and should be tuned as processor speeds and memory technologies advance.
  &quot;cpuMemCost&quot;: 42, # The CPU memory cost parameter to be used by the STANDARD_SCRYPT hashing function. This parameter, along with block_size and cpu_mem_cost help tune the resources needed to hash a password, and should be tuned as processor speeds and memory technologies advance.
  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;,
  &quot;dkLen&quot;: 42, # The desired key length for the STANDARD_SCRYPT hashing function. Must be at least 1.
  &quot;hashAlgorithm&quot;: &quot;A String&quot;, # Required. The hashing function used to hash the account passwords. Must be one of the following: * HMAC_SHA256 * HMAC_SHA1 * HMAC_MD5 * SCRYPT * PBKDF_SHA1 * MD5 * HMAC_SHA512 * SHA1 * BCRYPT * PBKDF2_SHA256 * SHA256 * SHA512 * STANDARD_SCRYPT * ARGON2
  &quot;memoryCost&quot;: 42, # Memory cost for hash calculation. Only required when the hashing function is SCRYPT.
  &quot;parallelization&quot;: 42, # The parallelization cost parameter to be used by the STANDARD_SCRYPT hashing function. This parameter, along with block_size and cpu_mem_cost help tune the resources needed to hash a password, and should be tuned as processor speeds and memory technologies advance.
  &quot;passwordHashOrder&quot;: &quot;A String&quot;,
  &quot;rounds&quot;: 42, # The number of rounds used for hash calculation. Only required for the following hashing functions: * MD5 * SHA1 * SHA256 * SHA512 * PBKDF_SHA1 * PBKDF2_SHA256 * SCRYPT
  &quot;saltSeparator&quot;: &quot;A String&quot;, # One or more bytes to be inserted between the salt and plain text password. For stronger security, this should be a single non-printable character.
  &quot;sanityCheck&quot;: True or False, # If true, the service will do the following list of checks before an account is uploaded: * Duplicate emails * Duplicate federated IDs * Federated ID provider validation If the duplication exists within the list of accounts to be uploaded, it will prevent the entire list from being uploaded. If the email or federated ID is a duplicate of a user already within the project/tenant, the account will not be uploaded, but the rest of the accounts will be unaffected. If false, these checks will be skipped.
  &quot;signerKey&quot;: &quot;A String&quot;, # The signer key used to hash the password. Required for the following hashing functions: * SCRYPT, * HMAC_MD5, * HMAC_SHA1, * HMAC_SHA256, * HMAC_SHA512
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the Identity Platform tenant the account belongs to.
  &quot;users&quot;: [ # A list of accounts to upload. `local_id` is required for each user; everything else is optional.
    { # An Identity Platform account&#x27;s information.
      &quot;createdAt&quot;: &quot;A String&quot;, # The time, in milliseconds from epoch, when the account was created.
      &quot;customAttributes&quot;: &quot;A String&quot;, # Custom claims to be added to any ID tokens minted for the account. Should be at most 1,000 characters in length and in valid JSON format.
      &quot;customAuth&quot;: True or False, # Output only. Whether this account has been authenticated using SignInWithCustomToken.
      &quot;dateOfBirth&quot;: &quot;A String&quot;, # Output only. The date of birth set for the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;disabled&quot;: True or False, # Whether the account is disabled. Disabled accounts are inaccessible except for requests bearing a Google OAuth2 credential with proper permissions.
      &quot;displayName&quot;: &quot;A String&quot;, # The display name of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;email&quot;: &quot;A String&quot;, # The account&#x27;s email address. The length of the email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
      &quot;emailLinkSignin&quot;: True or False, # Output only. Whether the account can authenticate with email link.
      &quot;emailVerified&quot;: True or False, # Whether the account&#x27;s email address has been verified.
      &quot;initialEmail&quot;: &quot;A String&quot;, # The first email address associated with this account. The account&#x27;s initial email cannot be changed once set and is used to recover access to this account if lost via the RECOVER_EMAIL flow in GetOobCode. Should match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
      &quot;language&quot;: &quot;A String&quot;, # Output only. The language preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;lastLoginAt&quot;: &quot;A String&quot;, # The last time, in milliseconds from epoch, this account was logged into.
      &quot;lastRefreshAt&quot;: &quot;A String&quot;, # Timestamp when an ID token was last minted for this account.
      &quot;localId&quot;: &quot;A String&quot;, # Immutable. The unique ID of the account.
      &quot;mfaInfo&quot;: [ # Information on which multi-factor authentication providers are enabled for this account.
        { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
          &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
          &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
            &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
          },
          &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
          &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
          &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
          &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
          },
          &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
        },
      ],
      &quot;passwordHash&quot;: &quot;A String&quot;, # The account&#x27;s hashed password. Only accessible by requests bearing a Google OAuth2 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
      &quot;passwordUpdatedAt&quot;: 3.14, # The timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z, when the account&#x27;s password was last updated.
      &quot;phoneNumber&quot;: &quot;A String&quot;, # The account&#x27;s phone number.
      &quot;photoUrl&quot;: &quot;A String&quot;, # The URL of the account&#x27;s profile photo. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;providerUserInfo&quot;: [ # Information about the user as provided by various Identity Providers.
        { # Information about the user as provided by various Identity Providers.
          &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the Identity Provider.
          &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email address at the Identity Provider.
          &quot;federatedId&quot;: &quot;A String&quot;, # The user&#x27;s identifier at the Identity Provider.
          &quot;phoneNumber&quot;: &quot;A String&quot;, # The user&#x27;s phone number at the Identity Provider.
          &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s profile photo URL at the Identity Provider.
          &quot;providerId&quot;: &quot;A String&quot;, # The ID of the Identity Provider.
          &quot;rawId&quot;: &quot;A String&quot;, # The user&#x27;s raw identifier directly returned from Identity Provider.
          &quot;screenName&quot;: &quot;A String&quot;, # The user&#x27;s screen_name at Twitter or login name at GitHub.
        },
      ],
      &quot;rawPassword&quot;: &quot;A String&quot;, # Input only. Plain text password used to update a account&#x27;s password. This field is only ever used as input in a request. Identity Platform uses cryptographically secure hashing when managing passwords and will never store or transmit a user&#x27;s password in plain text.
      &quot;salt&quot;: &quot;A String&quot;, # The account&#x27;s password salt. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
      &quot;screenName&quot;: &quot;A String&quot;, # Output only. This account&#x27;s screen name at Twitter or login name at GitHub.
      &quot;tenantId&quot;: &quot;A String&quot;, # ID of the tenant this account belongs to. Only set if this account belongs to a tenant.
      &quot;timeZone&quot;: &quot;A String&quot;, # Output only. The time zone preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;validSince&quot;: &quot;A String&quot;, # Oldest timestamp, in seconds since epoch, that an ID token should be considered valid. All ID tokens issued before this time are considered invalid.
      &quot;version&quot;: 42, # The version of the account&#x27;s password. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
    },
  ],
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for UploadAccount.
  &quot;error&quot;: [ # Detailed error info for accounts that cannot be uploaded.
    { # Error information explaining why an account cannot be uploaded. batch upload.
      &quot;index&quot;: 42, # The index of the item, range is [0, request.size - 1]
      &quot;message&quot;: &quot;A String&quot;, # Detailed error message
    },
  ],
  &quot;kind&quot;: &quot;A String&quot;,
}</pre>
</div>

<div class="method">
    <code class="details" id="batchDelete">batchDelete(targetProjectId, body=None, x__xgafv=None)</code>
  <pre>Batch deletes multiple accounts. For accounts that fail to be deleted, error info is contained in the response. The method ignores accounts that do not exist or are duplicated in the request. This method requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control).

Args:
  targetProjectId: string, If `tenant_id` is specified, the ID of the Google Cloud project that the Identity Platform tenant belongs to. Otherwise, the ID of the Google Cloud project that accounts belong to. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for BatchDeleteAccounts.
  &quot;force&quot;: True or False, # Whether to force deleting accounts that are not in disabled state. If false, only disabled accounts will be deleted, and accounts that are not disabled will be added to the `errors`.
  &quot;localIds&quot;: [ # Required. List of user IDs to be deleted.
    &quot;A String&quot;,
  ],
  &quot;tenantId&quot;: &quot;A String&quot;, # If the accounts belong to an Identity Platform tenant, the ID of the tenant. If the accounts belong to a default Identity Platform project, the field is not needed.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message to BatchDeleteAccounts.
  &quot;errors&quot;: [ # Detailed error info for accounts that cannot be deleted.
    { # Error info for account failed to be deleted.
      &quot;index&quot;: 42, # The index of the errored item in the original local_ids field.
      &quot;localId&quot;: &quot;A String&quot;, # The corresponding user ID.
      &quot;message&quot;: &quot;A String&quot;, # Detailed error message.
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="batchGet">batchGet(targetProjectId, delegatedProjectNumber=None, maxResults=None, nextPageToken=None, tenantId=None, x__xgafv=None)</code>
  <pre>Download account information for all accounts on the project in a paginated manner. To use this method requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).. Furthermore, additional permissions are needed to get password hash, password salt, and password version from accounts; otherwise these fields are redacted.

Args:
  targetProjectId: string, If `tenant_id` is specified, the ID of the Google Cloud project that the Identity Platform tenant belongs to. Otherwise, the ID of the Google Cloud project that the accounts belong to. (required)
  delegatedProjectNumber: string, A parameter
  maxResults: integer, The maximum number of results to return. Must be at least 1 and no greater than 1000. By default, it is 20.
  nextPageToken: string, The pagination token from the response of a previous request.
  tenantId: string, The ID of the Identity Platform tenant the accounts belongs to. If not specified, accounts on the Identity Platform project are returned.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for DownloadAccount.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;nextPageToken&quot;: &quot;A String&quot;, # If there are more accounts to be downloaded, a token that can be passed back to DownloadAccount to get more accounts. Otherwise, this is blank.
  &quot;users&quot;: [ # All accounts belonging to the project/tenant limited by max_results in the request.
    { # An Identity Platform account&#x27;s information.
      &quot;createdAt&quot;: &quot;A String&quot;, # The time, in milliseconds from epoch, when the account was created.
      &quot;customAttributes&quot;: &quot;A String&quot;, # Custom claims to be added to any ID tokens minted for the account. Should be at most 1,000 characters in length and in valid JSON format.
      &quot;customAuth&quot;: True or False, # Output only. Whether this account has been authenticated using SignInWithCustomToken.
      &quot;dateOfBirth&quot;: &quot;A String&quot;, # Output only. The date of birth set for the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;disabled&quot;: True or False, # Whether the account is disabled. Disabled accounts are inaccessible except for requests bearing a Google OAuth2 credential with proper permissions.
      &quot;displayName&quot;: &quot;A String&quot;, # The display name of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;email&quot;: &quot;A String&quot;, # The account&#x27;s email address. The length of the email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
      &quot;emailLinkSignin&quot;: True or False, # Output only. Whether the account can authenticate with email link.
      &quot;emailVerified&quot;: True or False, # Whether the account&#x27;s email address has been verified.
      &quot;initialEmail&quot;: &quot;A String&quot;, # The first email address associated with this account. The account&#x27;s initial email cannot be changed once set and is used to recover access to this account if lost via the RECOVER_EMAIL flow in GetOobCode. Should match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
      &quot;language&quot;: &quot;A String&quot;, # Output only. The language preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;lastLoginAt&quot;: &quot;A String&quot;, # The last time, in milliseconds from epoch, this account was logged into.
      &quot;lastRefreshAt&quot;: &quot;A String&quot;, # Timestamp when an ID token was last minted for this account.
      &quot;localId&quot;: &quot;A String&quot;, # Immutable. The unique ID of the account.
      &quot;mfaInfo&quot;: [ # Information on which multi-factor authentication providers are enabled for this account.
        { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
          &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
          &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
            &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
          },
          &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
          &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
          &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
          &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
          },
          &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
        },
      ],
      &quot;passwordHash&quot;: &quot;A String&quot;, # The account&#x27;s hashed password. Only accessible by requests bearing a Google OAuth2 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
      &quot;passwordUpdatedAt&quot;: 3.14, # The timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z, when the account&#x27;s password was last updated.
      &quot;phoneNumber&quot;: &quot;A String&quot;, # The account&#x27;s phone number.
      &quot;photoUrl&quot;: &quot;A String&quot;, # The URL of the account&#x27;s profile photo. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;providerUserInfo&quot;: [ # Information about the user as provided by various Identity Providers.
        { # Information about the user as provided by various Identity Providers.
          &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the Identity Provider.
          &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email address at the Identity Provider.
          &quot;federatedId&quot;: &quot;A String&quot;, # The user&#x27;s identifier at the Identity Provider.
          &quot;phoneNumber&quot;: &quot;A String&quot;, # The user&#x27;s phone number at the Identity Provider.
          &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s profile photo URL at the Identity Provider.
          &quot;providerId&quot;: &quot;A String&quot;, # The ID of the Identity Provider.
          &quot;rawId&quot;: &quot;A String&quot;, # The user&#x27;s raw identifier directly returned from Identity Provider.
          &quot;screenName&quot;: &quot;A String&quot;, # The user&#x27;s screen_name at Twitter or login name at GitHub.
        },
      ],
      &quot;rawPassword&quot;: &quot;A String&quot;, # Input only. Plain text password used to update a account&#x27;s password. This field is only ever used as input in a request. Identity Platform uses cryptographically secure hashing when managing passwords and will never store or transmit a user&#x27;s password in plain text.
      &quot;salt&quot;: &quot;A String&quot;, # The account&#x27;s password salt. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
      &quot;screenName&quot;: &quot;A String&quot;, # Output only. This account&#x27;s screen name at Twitter or login name at GitHub.
      &quot;tenantId&quot;: &quot;A String&quot;, # ID of the tenant this account belongs to. Only set if this account belongs to a tenant.
      &quot;timeZone&quot;: &quot;A String&quot;, # Output only. The time zone preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;validSince&quot;: &quot;A String&quot;, # Oldest timestamp, in seconds since epoch, that an ID token should be considered valid. All ID tokens issued before this time are considered invalid.
      &quot;version&quot;: 42, # The version of the account&#x27;s password. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="batchGet_next">batchGet_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="delete">delete(targetProjectId, body=None, x__xgafv=None)</code>
  <pre>Deletes a user&#x27;s account.

Args:
  targetProjectId: string, The ID of the project which the account belongs to. Should only be specified in authenticated requests that specify local_id of an account. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for DeleteAccount.
  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;,
  &quot;idToken&quot;: &quot;A String&quot;, # The Identity Platform ID token of the account to delete. Require to be specified for requests from end users that lack Google OAuth 2.0 credential. Authenticated requests bearing a Google OAuth2 credential with proper permissions may pass local_id to specify the account to delete alternatively.
  &quot;localId&quot;: &quot;A String&quot;, # The ID of user account to delete. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control). Requests from users lacking the credential should pass an ID token instead.
  &quot;targetProjectId&quot;: &quot;A String&quot;, # The ID of the project which the account belongs to. Should only be specified in authenticated requests that specify local_id of an account.
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the tenant that the account belongs to, if applicable. Only require to be specified for authenticated requests bearing a Google OAuth 2.0 credential that specify local_id of an account that belongs to an Identity Platform tenant.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for DeleteAccount.
  &quot;kind&quot;: &quot;A String&quot;,
}</pre>
</div>

<div class="method">
    <code class="details" id="lookup">lookup(targetProjectId, body=None, x__xgafv=None)</code>
  <pre>Gets account information for all matched accounts. For an end user request, retrieves the account of the end user. For an admin request with Google OAuth 2.0 credential, retrieves one or multiple account(s) with matching criteria.

Args:
  targetProjectId: string, The ID of the Google Cloud project that the account or the Identity Platform tenant specified by `tenant_id` belongs to. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control). (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for GetAccountInfo.
  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;,
  &quot;email&quot;: [ # The email address of one or more accounts to fetch. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production. Should only be specified by authenticated requests from a developer.
    &quot;A String&quot;,
  ],
  &quot;federatedUserId&quot;: [
    { # Federated user identifier at an Identity Provider.
      &quot;providerId&quot;: &quot;A String&quot;, # The ID of supported identity providers. This should be a provider ID enabled for sign-in, which is either from the list of [default supported IdPs](https://cloud.google.com/identity-platform/docs/reference/rest/v2/defaultSupportedIdps/list), or of the format `oidc.*` or `saml.*`. Some examples are `google.com`, `facebook.com`, `oidc.testapp`, and `saml.testapp`.
      &quot;rawId&quot;: &quot;A String&quot;, # The user ID of the account at the third-party Identity Provider specified by `provider_id`.
    },
  ],
  &quot;idToken&quot;: &quot;A String&quot;, # The Identity Platform ID token of the account to fetch. Require to be specified for requests from end users.
  &quot;initialEmail&quot;: [ # The initial email of one or more accounts to fetch. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production. Should only be specified by authenticated requests from a developer.
    &quot;A String&quot;,
  ],
  &quot;localId&quot;: [ # The ID of one or more accounts to fetch. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
    &quot;A String&quot;,
  ],
  &quot;phoneNumber&quot;: [ # The phone number of one or more accounts to fetch. Should only be specified by authenticated requests from a developer and should be in E.164 format, for example, +15555555555.
    &quot;A String&quot;,
  ],
  &quot;targetProjectId&quot;: &quot;A String&quot;, # The ID of the Google Cloud project that the account or the Identity Platform tenant specified by `tenant_id` belongs to. Should only be specified by authenticated requests bearing a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the tenant that the account belongs to. Should only be specified by authenticated requests from a developer.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for GetAccountInfo.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;users&quot;: [ # The information of specific user account(s) matching the parameters in the request.
    { # An Identity Platform account&#x27;s information.
      &quot;createdAt&quot;: &quot;A String&quot;, # The time, in milliseconds from epoch, when the account was created.
      &quot;customAttributes&quot;: &quot;A String&quot;, # Custom claims to be added to any ID tokens minted for the account. Should be at most 1,000 characters in length and in valid JSON format.
      &quot;customAuth&quot;: True or False, # Output only. Whether this account has been authenticated using SignInWithCustomToken.
      &quot;dateOfBirth&quot;: &quot;A String&quot;, # Output only. The date of birth set for the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;disabled&quot;: True or False, # Whether the account is disabled. Disabled accounts are inaccessible except for requests bearing a Google OAuth2 credential with proper permissions.
      &quot;displayName&quot;: &quot;A String&quot;, # The display name of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;email&quot;: &quot;A String&quot;, # The account&#x27;s email address. The length of the email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
      &quot;emailLinkSignin&quot;: True or False, # Output only. Whether the account can authenticate with email link.
      &quot;emailVerified&quot;: True or False, # Whether the account&#x27;s email address has been verified.
      &quot;initialEmail&quot;: &quot;A String&quot;, # The first email address associated with this account. The account&#x27;s initial email cannot be changed once set and is used to recover access to this account if lost via the RECOVER_EMAIL flow in GetOobCode. Should match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
      &quot;language&quot;: &quot;A String&quot;, # Output only. The language preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;lastLoginAt&quot;: &quot;A String&quot;, # The last time, in milliseconds from epoch, this account was logged into.
      &quot;lastRefreshAt&quot;: &quot;A String&quot;, # Timestamp when an ID token was last minted for this account.
      &quot;localId&quot;: &quot;A String&quot;, # Immutable. The unique ID of the account.
      &quot;mfaInfo&quot;: [ # Information on which multi-factor authentication providers are enabled for this account.
        { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
          &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
          &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
            &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
          },
          &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
          &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
          &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
          &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
          },
          &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
        },
      ],
      &quot;passwordHash&quot;: &quot;A String&quot;, # The account&#x27;s hashed password. Only accessible by requests bearing a Google OAuth2 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
      &quot;passwordUpdatedAt&quot;: 3.14, # The timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z, when the account&#x27;s password was last updated.
      &quot;phoneNumber&quot;: &quot;A String&quot;, # The account&#x27;s phone number.
      &quot;photoUrl&quot;: &quot;A String&quot;, # The URL of the account&#x27;s profile photo. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;providerUserInfo&quot;: [ # Information about the user as provided by various Identity Providers.
        { # Information about the user as provided by various Identity Providers.
          &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the Identity Provider.
          &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email address at the Identity Provider.
          &quot;federatedId&quot;: &quot;A String&quot;, # The user&#x27;s identifier at the Identity Provider.
          &quot;phoneNumber&quot;: &quot;A String&quot;, # The user&#x27;s phone number at the Identity Provider.
          &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s profile photo URL at the Identity Provider.
          &quot;providerId&quot;: &quot;A String&quot;, # The ID of the Identity Provider.
          &quot;rawId&quot;: &quot;A String&quot;, # The user&#x27;s raw identifier directly returned from Identity Provider.
          &quot;screenName&quot;: &quot;A String&quot;, # The user&#x27;s screen_name at Twitter or login name at GitHub.
        },
      ],
      &quot;rawPassword&quot;: &quot;A String&quot;, # Input only. Plain text password used to update a account&#x27;s password. This field is only ever used as input in a request. Identity Platform uses cryptographically secure hashing when managing passwords and will never store or transmit a user&#x27;s password in plain text.
      &quot;salt&quot;: &quot;A String&quot;, # The account&#x27;s password salt. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
      &quot;screenName&quot;: &quot;A String&quot;, # Output only. This account&#x27;s screen name at Twitter or login name at GitHub.
      &quot;tenantId&quot;: &quot;A String&quot;, # ID of the tenant this account belongs to. Only set if this account belongs to a tenant.
      &quot;timeZone&quot;: &quot;A String&quot;, # Output only. The time zone preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;validSince&quot;: &quot;A String&quot;, # Oldest timestamp, in seconds since epoch, that an ID token should be considered valid. All ID tokens issued before this time are considered invalid.
      &quot;version&quot;: 42, # The version of the account&#x27;s password. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="query">query(targetProjectId, body=None, x__xgafv=None)</code>
  <pre>Looks up user accounts within a project or a tenant based on conditions in the request.

Args:
  targetProjectId: string, The ID of the project to which the result is scoped. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for QueryUserInfo.
  &quot;expression&quot;: [
    { # Query conditions used to filter results.
      &quot;email&quot;: &quot;A String&quot;, # A case insensitive string that the account&#x27;s email should match. Only one of `email`, `phone_number`, or `user_id` should be specified in a SqlExpression. If more than one is specified, only the first (in that order) will be applied.
      &quot;phoneNumber&quot;: &quot;A String&quot;, # A string that the account&#x27;s phone number should match. Only one of `email`, `phone_number`, or `user_id` should be specified in a SqlExpression. If more than one is specified, only the first (in that order) will be applied.
      &quot;userId&quot;: &quot;A String&quot;, # A string that the account&#x27;s local ID should match. Only one of `email`, `phone_number`, or `user_id` should be specified in a SqlExpression If more than one is specified, only the first (in that order) will be applied.
    },
  ],
  &quot;limit&quot;: &quot;A String&quot;, # The maximum number of accounts to return with an upper limit of __500__. Defaults to _500_. Only valid when `return_user_info` is set to `true`.
  &quot;offset&quot;: &quot;A String&quot;, # The number of accounts to skip from the beginning of matching records. Only valid when `return_user_info` is set to `true`.
  &quot;order&quot;: &quot;A String&quot;,
  &quot;returnUserInfo&quot;: True or False, # If `true`, this request will return the accounts matching the query. If `false`, only the __count__ of accounts matching the query will be returned. Defaults to `true`.
  &quot;sortBy&quot;: &quot;A String&quot;,
  &quot;tenantId&quot;: &quot;A String&quot;, # The ID of the tenant to which the result is scoped.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for QueryUserInfo.
  &quot;recordsCount&quot;: &quot;A String&quot;, # If `return_user_info` in the request is true, this is the number of returned accounts in this message. Otherwise, this is the total number of accounts matching the query.
  &quot;userInfo&quot;: [ # If `return_user_info` in the request is true, this is the accounts matching the query.
    { # An Identity Platform account&#x27;s information.
      &quot;createdAt&quot;: &quot;A String&quot;, # The time, in milliseconds from epoch, when the account was created.
      &quot;customAttributes&quot;: &quot;A String&quot;, # Custom claims to be added to any ID tokens minted for the account. Should be at most 1,000 characters in length and in valid JSON format.
      &quot;customAuth&quot;: True or False, # Output only. Whether this account has been authenticated using SignInWithCustomToken.
      &quot;dateOfBirth&quot;: &quot;A String&quot;, # Output only. The date of birth set for the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;disabled&quot;: True or False, # Whether the account is disabled. Disabled accounts are inaccessible except for requests bearing a Google OAuth2 credential with proper permissions.
      &quot;displayName&quot;: &quot;A String&quot;, # The display name of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;email&quot;: &quot;A String&quot;, # The account&#x27;s email address. The length of the email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
      &quot;emailLinkSignin&quot;: True or False, # Output only. Whether the account can authenticate with email link.
      &quot;emailVerified&quot;: True or False, # Whether the account&#x27;s email address has been verified.
      &quot;initialEmail&quot;: &quot;A String&quot;, # The first email address associated with this account. The account&#x27;s initial email cannot be changed once set and is used to recover access to this account if lost via the RECOVER_EMAIL flow in GetOobCode. Should match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec.
      &quot;language&quot;: &quot;A String&quot;, # Output only. The language preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;lastLoginAt&quot;: &quot;A String&quot;, # The last time, in milliseconds from epoch, this account was logged into.
      &quot;lastRefreshAt&quot;: &quot;A String&quot;, # Timestamp when an ID token was last minted for this account.
      &quot;localId&quot;: &quot;A String&quot;, # Immutable. The unique ID of the account.
      &quot;mfaInfo&quot;: [ # Information on which multi-factor authentication providers are enabled for this account.
        { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
          &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
          &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
            &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
          },
          &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
          &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
          &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
          &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
          },
          &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
        },
      ],
      &quot;passwordHash&quot;: &quot;A String&quot;, # The account&#x27;s hashed password. Only accessible by requests bearing a Google OAuth2 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
      &quot;passwordUpdatedAt&quot;: 3.14, # The timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z, when the account&#x27;s password was last updated.
      &quot;phoneNumber&quot;: &quot;A String&quot;, # The account&#x27;s phone number.
      &quot;photoUrl&quot;: &quot;A String&quot;, # The URL of the account&#x27;s profile photo. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;providerUserInfo&quot;: [ # Information about the user as provided by various Identity Providers.
        { # Information about the user as provided by various Identity Providers.
          &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the Identity Provider.
          &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email address at the Identity Provider.
          &quot;federatedId&quot;: &quot;A String&quot;, # The user&#x27;s identifier at the Identity Provider.
          &quot;phoneNumber&quot;: &quot;A String&quot;, # The user&#x27;s phone number at the Identity Provider.
          &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s profile photo URL at the Identity Provider.
          &quot;providerId&quot;: &quot;A String&quot;, # The ID of the Identity Provider.
          &quot;rawId&quot;: &quot;A String&quot;, # The user&#x27;s raw identifier directly returned from Identity Provider.
          &quot;screenName&quot;: &quot;A String&quot;, # The user&#x27;s screen_name at Twitter or login name at GitHub.
        },
      ],
      &quot;rawPassword&quot;: &quot;A String&quot;, # Input only. Plain text password used to update a account&#x27;s password. This field is only ever used as input in a request. Identity Platform uses cryptographically secure hashing when managing passwords and will never store or transmit a user&#x27;s password in plain text.
      &quot;salt&quot;: &quot;A String&quot;, # The account&#x27;s password salt. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
      &quot;screenName&quot;: &quot;A String&quot;, # Output only. This account&#x27;s screen name at Twitter or login name at GitHub.
      &quot;tenantId&quot;: &quot;A String&quot;, # ID of the tenant this account belongs to. Only set if this account belongs to a tenant.
      &quot;timeZone&quot;: &quot;A String&quot;, # Output only. The time zone preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only.
      &quot;validSince&quot;: &quot;A String&quot;, # Oldest timestamp, in seconds since epoch, that an ID token should be considered valid. All ID tokens issued before this time are considered invalid.
      &quot;version&quot;: 42, # The version of the account&#x27;s password. Only accessible by requests bearing a Google OAuth2 credential with proper permissions.
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="sendOobCode">sendOobCode(targetProjectId, body=None, x__xgafv=None)</code>
  <pre>Sends an out-of-band confirmation code for an account. Requests from a authenticated request can optionally return a link including the OOB code instead of sending it.

Args:
  targetProjectId: string, The Project ID of the Identity Platform project which the account belongs to. To specify this field, it requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control). (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for GetOobCode.
  &quot;androidInstallApp&quot;: True or False, # If an associated android app can handle the OOB code, whether or not to install the android app on the device where the link is opened if the app is not already installed.
  &quot;androidMinimumVersion&quot;: &quot;A String&quot;, # If an associated android app can handle the OOB code, the minimum version of the app. If the version on the device is lower than this version then the user is taken to Google Play Store to upgrade the app.
  &quot;androidPackageName&quot;: &quot;A String&quot;, # If an associated android app can handle the OOB code, the Android package name of the android app that will handle the callback when this OOB code is used. This will allow the correct app to open if it is already installed, or allow Google Play Store to open to the correct app if it is not yet installed.
  &quot;canHandleCodeInApp&quot;: True or False, # When set to true, the OOB code link will be be sent as a Universal Link or an Android App Link and will be opened by the corresponding app if installed. If not set, or set to false, the OOB code will be sent to the web widget first and then on continue will redirect to the app if installed.
  &quot;captchaResp&quot;: &quot;A String&quot;, # For a PASSWORD_RESET request, a reCaptcha response is required when the system detects possible abuse activity. In those cases, this is the response from the reCaptcha challenge used to verify the caller.
  &quot;challenge&quot;: &quot;A String&quot;,
  &quot;clientType&quot;: &quot;A String&quot;, # The client type: web, Android or iOS. Required when reCAPTCHA Enterprise protection is enabled.
  &quot;continueUrl&quot;: &quot;A String&quot;, # The Url to continue after user clicks the link sent in email. This is the url that will allow the web widget to handle the OOB code.
  &quot;dynamicLinkDomain&quot;: &quot;A String&quot;, # In order to ensure that the url used can be easily opened up in iOS or android, we create a [Firebase Dynamic Link](https://firebase.google.com/docs/dynamic-links). Most Identity Platform projects will only have one Dynamic Link domain enabled, and can leave this field blank. This field contains a specified Dynamic Link domain for projects that have multiple enabled.
  &quot;email&quot;: &quot;A String&quot;, # The account&#x27;s email address to send the OOB code to, and generally the email address of the account that needs to be updated. Required for PASSWORD_RESET, EMAIL_SIGNIN, and VERIFY_EMAIL. Only required for VERIFY_AND_CHANGE_EMAIL requests when return_oob_link is set to true. In this case, it is the original email of the user.
  &quot;iOSAppStoreId&quot;: &quot;A String&quot;, # If an associated iOS app can handle the OOB code, the App Store id of this app. This will allow App Store to open to the correct app if the app is not yet installed.
  &quot;iOSBundleId&quot;: &quot;A String&quot;, # If an associated iOS app can handle the OOB code, the iOS bundle id of this app. This will allow the correct app to open if it is already installed.
  &quot;idToken&quot;: &quot;A String&quot;, # An ID token for the account. It is required for VERIFY_AND_CHANGE_EMAIL and VERIFY_EMAIL requests unless return_oob_link is set to true.
  &quot;linkDomain&quot;: &quot;A String&quot;, # Optional. In order to ensure that the url used can be easily opened in iOS or Android, we create a Hosting link &#x27;/__/auth/links&#x27;. This optional field contains the domain to use when constructing a Hosting link. If not set, &#x27;.firebaseapp.com&#x27; domain will be used.
  &quot;newEmail&quot;: &quot;A String&quot;, # The email address the account is being updated to. Required only for VERIFY_AND_CHANGE_EMAIL requests.
  &quot;recaptchaVersion&quot;: &quot;A String&quot;, # The reCAPTCHA version of the reCAPTCHA token in the captcha_response.
  &quot;requestType&quot;: &quot;A String&quot;, # Required. The type of out-of-band (OOB) code to send. Depending on this value, other fields in this request will be required and/or have different meanings. There are 4 different OOB codes that can be sent: * PASSWORD_RESET * EMAIL_SIGNIN * VERIFY_EMAIL * VERIFY_AND_CHANGE_EMAIL
  &quot;returnOobLink&quot;: True or False, # Whether the confirmation link containing the OOB code should be returned in the response (no email is sent). Used when a developer wants to construct the email template and send it on their own. By default this is false; to specify this field, and to set it to true, it requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control)
  &quot;targetProjectId&quot;: &quot;A String&quot;, # The Project ID of the Identity Platform project which the account belongs to. To specify this field, it requires a Google OAuth 2.0 credential with proper [permissions](https://cloud.google.com/identity-platform/docs/access-control).
  &quot;tenantId&quot;: &quot;A String&quot;, # The tenant ID of the Identity Platform tenant the account belongs to.
  &quot;userIp&quot;: &quot;A String&quot;, # The IP address of the caller. Required only for PASSWORD_RESET requests.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for GetOobCode.
  &quot;email&quot;: &quot;A String&quot;, # If return_oob_link is false in the request, the email address the verification was sent to.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;oobCode&quot;: &quot;A String&quot;, # If return_oob_link is true in the request, the OOB code to send.
  &quot;oobLink&quot;: &quot;A String&quot;, # If return_oob_link is true in the request, the OOB link to be sent to the user. This returns the constructed link including [Firebase Dynamic Link](https://firebase.google.com/docs/dynamic-links) related parameters.
}</pre>
</div>

<div class="method">
    <code class="details" id="update">update(targetProjectId, body=None, x__xgafv=None)</code>
  <pre>Updates account-related information for the specified user by setting specific fields or applying action codes. Requests from administrators and end users are supported.

Args:
  targetProjectId: string, The project ID for the project that the account belongs to. Specifying this field requires Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control). Requests from end users should pass an Identity Platform ID token instead. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for SetAccountInfo.
  &quot;captchaChallenge&quot;: &quot;A String&quot;,
  &quot;captchaResponse&quot;: &quot;A String&quot;, # The response from reCaptcha challenge. This is required when the system detects possible abuse activities.
  &quot;createdAt&quot;: &quot;A String&quot;, # The timestamp in milliseconds when the account was created.
  &quot;customAttributes&quot;: &quot;A String&quot;, # JSON formatted custom attributes to be stored in the Identity Platform ID token. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control).
  &quot;delegatedProjectNumber&quot;: &quot;A String&quot;,
  &quot;deleteAttribute&quot;: [
    &quot;A String&quot;,
  ],
  &quot;deleteProvider&quot;: [ # The Identity Providers to unlink from the user&#x27;s account.
    &quot;A String&quot;,
  ],
  &quot;disableUser&quot;: True or False, # If true, marks the account as disabled, meaning the user will no longer be able to sign-in.
  &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s new display name to be updated in the account&#x27;s attributes. The length of the display name must be less than or equal to 256 characters.
  &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s new email to be updated in the account&#x27;s attributes. The length of email should be less than 256 characters and in the format of `name@domain.tld`. The email should also match the [RFC 822](https://tools.ietf.org/html/rfc822) addr-spec production. If [email enumeration protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, the email cannot be changed by the user without verifying the email first, but it can be changed by an administrator.
  &quot;emailVerified&quot;: True or False, # Whether the user&#x27;s email has been verified. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control).
  &quot;idToken&quot;: &quot;A String&quot;, # A valid Identity Platform ID token. Required when attempting to change user-related information.
  &quot;instanceId&quot;: &quot;A String&quot;,
  &quot;lastLoginAt&quot;: &quot;A String&quot;, # The timestamp in milliseconds when the account last logged in.
  &quot;linkProviderUserInfo&quot;: { # Information about the user as provided by various Identity Providers. # The provider to be linked to the user&#x27;s account. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control).
    &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the Identity Provider.
    &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email address at the Identity Provider.
    &quot;federatedId&quot;: &quot;A String&quot;, # The user&#x27;s identifier at the Identity Provider.
    &quot;phoneNumber&quot;: &quot;A String&quot;, # The user&#x27;s phone number at the Identity Provider.
    &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s profile photo URL at the Identity Provider.
    &quot;providerId&quot;: &quot;A String&quot;, # The ID of the Identity Provider.
    &quot;rawId&quot;: &quot;A String&quot;, # The user&#x27;s raw identifier directly returned from Identity Provider.
    &quot;screenName&quot;: &quot;A String&quot;, # The user&#x27;s screen_name at Twitter or login name at GitHub.
  },
  &quot;localId&quot;: &quot;A String&quot;, # The ID of the user. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control). For requests from end-users, an ID token should be passed instead.
  &quot;mfa&quot;: { # Multi-factor authentication related information. # The multi-factor authentication related information to be set on the user&#x27;s account. This will overwrite any previous multi-factor related information on the account. Specifying this field requires a Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control).
    &quot;enrollments&quot;: [ # The second factors the user has enrolled.
      { # Information on which multi-factor authentication (MFA) providers are enabled for an account.
        &quot;displayName&quot;: &quot;A String&quot;, # Display name for this mfa option e.g. &quot;corp cell phone&quot;.
        &quot;emailInfo&quot;: { # Information about email MFA. # Contains information specific to email MFA.
          &quot;emailAddress&quot;: &quot;A String&quot;, # Email address that a MFA verification should be sent to.
        },
        &quot;enrolledAt&quot;: &quot;A String&quot;, # Timestamp when the account enrolled this second factor.
        &quot;mfaEnrollmentId&quot;: &quot;A String&quot;, # ID of this MFA option.
        &quot;phoneInfo&quot;: &quot;A String&quot;, # Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.
        &quot;totpInfo&quot;: { # Information about TOTP MFA. # Contains information specific to TOTP MFA.
        },
        &quot;unobfuscatedPhoneInfo&quot;: &quot;A String&quot;, # Output only. Unobfuscated phone_info.
      },
    ],
  },
  &quot;oobCode&quot;: &quot;A String&quot;, # The out-of-band code to be applied on the user&#x27;s account. The following out-of-band code types are supported: * VERIFY_EMAIL * RECOVER_EMAIL * REVERT_SECOND_FACTOR_ADDITION * VERIFY_AND_CHANGE_EMAIL
  &quot;password&quot;: &quot;A String&quot;, # The user&#x27;s new password to be updated in the account&#x27;s attributes. The password must be at least 6 characters long.
  &quot;phoneNumber&quot;: &quot;A String&quot;, # The phone number to be updated in the account&#x27;s attributes.
  &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s new photo URL for the account&#x27;s profile photo to be updated in the account&#x27;s attributes. The length of the URL must be less than or equal to 2048 characters.
  &quot;provider&quot;: [ # The Identity Providers that the account should be associated with.
    &quot;A String&quot;,
  ],
  &quot;returnSecureToken&quot;: True or False, # Whether or not to return an ID and refresh token. Should always be true.
  &quot;targetProjectId&quot;: &quot;A String&quot;, # The project ID for the project that the account belongs to. Specifying this field requires Google OAuth 2.0 credential with proper [permissions] (https://cloud.google.com/identity-platform/docs/access-control). Requests from end users should pass an Identity Platform ID token instead.
  &quot;tenantId&quot;: &quot;A String&quot;, # The tenant ID of the Identity Platform tenant that the account belongs to. Requests from end users should pass an Identity Platform ID token rather than setting this field.
  &quot;upgradeToFederatedLogin&quot;: True or False, # Whether the account should be restricted to only using federated login.
  &quot;validSince&quot;: &quot;A String&quot;, # Specifies the minimum timestamp in seconds for an Identity Platform ID token to be considered valid.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for SetAccountInfo
  &quot;displayName&quot;: &quot;A String&quot;, # The account&#x27;s display name.
  &quot;email&quot;: &quot;A String&quot;, # The account&#x27;s email address.
  &quot;emailVerified&quot;: True or False, # Whether the account&#x27;s email has been verified.
  &quot;expiresIn&quot;: &quot;A String&quot;, # The number of seconds until the Identity Platform ID token expires.
  &quot;idToken&quot;: &quot;A String&quot;, # An Identity Platform ID token for the account. This is used for legacy user sign up.
  &quot;kind&quot;: &quot;A String&quot;,
  &quot;localId&quot;: &quot;A String&quot;, # The ID of the authenticated user.
  &quot;newEmail&quot;: &quot;A String&quot;, # The new email that has been set on the user&#x27;s account attributes.
  &quot;passwordHash&quot;: &quot;A String&quot;, # Deprecated. No actual password hash is currently returned.
  &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s photo URL for the account&#x27;s profile photo.
  &quot;providerUserInfo&quot;: [ # The linked Identity Providers on the account.
    { # Information about the user as provided by various Identity Providers.
      &quot;displayName&quot;: &quot;A String&quot;, # The user&#x27;s display name at the Identity Provider.
      &quot;email&quot;: &quot;A String&quot;, # The user&#x27;s email address at the Identity Provider.
      &quot;federatedId&quot;: &quot;A String&quot;, # The user&#x27;s identifier at the Identity Provider.
      &quot;phoneNumber&quot;: &quot;A String&quot;, # The user&#x27;s phone number at the Identity Provider.
      &quot;photoUrl&quot;: &quot;A String&quot;, # The user&#x27;s profile photo URL at the Identity Provider.
      &quot;providerId&quot;: &quot;A String&quot;, # The ID of the Identity Provider.
      &quot;rawId&quot;: &quot;A String&quot;, # The user&#x27;s raw identifier directly returned from Identity Provider.
      &quot;screenName&quot;: &quot;A String&quot;, # The user&#x27;s screen_name at Twitter or login name at GitHub.
    },
  ],
  &quot;refreshToken&quot;: &quot;A String&quot;, # A refresh token for the account. This is used for legacy user sign up.
}</pre>
</div>

</body></html>